php forum
php mysql forum
php mysql smarty
 
Topic Options
#276018 - 07/04/04 02:03 AM Beta-[6.5] Generic Page for 6.5
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Mod Name / Version: Generic Page for 6.5 <br /><br />Description: This is a templated Generic Page - which will allow you to wrap your other site pages with a threads header/footer and stylesheet. <br /><br />Working Under: UBB.Threads 6.5 <br /><br />Mod Status: Beta <br /><br />Any pre-requisites: 6.5 <br /><br />Author(s): JoshPet <br /><br />Date: 07/04/04 <br /><br />Credits: Wraith originally helped me with this in the version 5 days <br /><br />Files Altered: none <br /><br />New Files: generic.php, generic.tmpl <br /><br />Database Altered: none <br /><br />Info/Instructions: Rename and duplicate files as needed. <br /><br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /><br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
116324-GenericPage6.5.zip (341 downloads)


Top
#276019 - 12/07/04 09:49 PM Re: Beta-[6.5] Generic Page for 6.5 [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thanks Josh, I use this one a lot <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#276020 - 12/22/04 09:18 AM Re: Beta-[6.5] Generic Page for 6.5 [Re: SurfMinister]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
This works fine, except the generic page show the user:<br /><br />You are not logged in. [Login] <br /><br />how to correct?
_________________________
nosleep

Top
#276021 - 12/22/04 10:47 PM Re: Beta-[6.5] Generic Page for 6.5 [Re: bobbychet]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Do you have forum cookies set globally?
_________________________
- Allen wavey
- What Drives You?

Top
#276022 - 12/22/04 11:39 PM Re: Beta-[6.5] Generic Page for 6.5 [Re: SurfMinister]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
I can't find a setting in my cp o set them globally?
_________________________
nosleep

Top
#276023 - 12/23/04 02:43 AM Re: Beta-[6.5] Generic Page for 6.5 [Re: bobbychet]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Control Panel - > Primary Settings <br />Advanced Options Tab <br /> <br />If the page you created isn't in your ubbthreads direcotry then set the cookie path to / <br /> <br />Also don't use http://www.yourdomain.com and http://yourdomain.com (no www) interchangably as the cookies are different between the two. You can be logged in at www. but not at the domain without the www.


Edited by JoshPet (12/23/04 02:44 AM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#276024 - 12/23/04 04:23 AM Re: Beta-[6.5] Generic Page for 6.5 [Re: Daine]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
hmmm, if I take the www out all users get this on submit:<br /><br />The host you are trying to send the input from is not a valid host. <br />Please use your back button to return to the previous page.
_________________________
nosleep

Top
#276025 - 12/23/04 11:48 AM Re: Beta-[6.5] Generic Page for 6.5 [Re: bobbychet]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
You can also set that part at whatever name registration service you use (register.com, joker.com, etc.). Set the http://yourdomain.com as an alias for http://www.yourdomain.com. <br /><br />You'll need to set the cookie globally like Josh explained to / (the root of your site), that way it will be available to your whole site.
_________________________
- Allen wavey
- What Drives You?

Top
#276026 - 12/24/04 04:17 AM Re: Beta-[6.5] Generic Page for 6.5 [Re: SurfMinister]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
my cookie is set / as default, never changed that. Thanks for the tip to change at registrar - didn't think of that.
_________________________
nosleep

Top
#276027 - 12/24/04 01:40 PM Re: Beta-[6.5] Generic Page for 6.5 [Re: bobbychet]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[]nosleep said:<br />hmmm, if I take the www out all users get this on submit:<br /><br />The host you are trying to send the input from is not a valid host. <br />Please use your back button to return to the previous page. [/]<br /><br />Use whatever one you use normally - that error you get is the referral check, which you can either turn off in your admin area.<br /><br />You also should list both domains for the referral check:<br /><br />Control Panel -> Primary Settings -> Advanced Options<br /><br />In the box that says "Domains for HTTP Refer check" separate them with a | per the example.com domain shown there.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#276028 - 12/28/04 12:41 PM Re: Beta-[6.5] Generic Page for 6.5 [Re: Daine]
nosleep Offline
Junior Member

Registered: 12/08/04
Posts: 36
Loc: DE
Even after following your advice to the minute it still shows "you are not logged in".<br /><br />I have done http://www.nobody.com|http://nobody.com<br /><br />and have also tried with referrer enabled and disabled.<br /><br />Make no difference. The not logged it won't go away.
_________________________
nosleep

Top
#276029 - 02/21/05 04:17 PM Re: Beta-[6.5] Generic Page for 6.5 [Re: Daine]
ZealotOnAStick_dup1 Offline
Member

Registered: 06/14/02
Posts: 166
Loc: Indiana
This is great, an extremely useful little thing that I'm getting a lot of use out of.<br /><br />However, there are a few additional info pages that I'd like only to be visible to members of the forum that are logged in. How would I go about doing that?<br /><br />Further restriction by group (if they're not in a specific group, they can't see it) would be nice as well. Is that a lot of extra stuff that would require more than just the generic page stuff?

Top
#276030 - 03/01/05 01:46 AM Re: Beta-[6.5] Generic Page for 6.5 [Re: astre]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
To restrict a page to logged in users only, just below the authenticate function, add this<br /><br />
Code:
<br />if(!$user['U_Username']) {<br />   $html = new html;<br />   $html -&gt; not_right("You must be logged in to view this page.",$Cat);<br />}<br />
<br /><br /><br />To restrict a page to a specific usergroup, first:<br /><br />Find this:<br />
Code:
<br />   $user = $userob -&gt; authenticate();<br />
<br /><br />Change to this:<br />[/code]<br /> $user = $userob -> authenticate("U_Groups");<br />[/code]<br /><br /><br />Below that, let's assume that you only want to allow access to usergroup #5, and if they aren't in the #5 group, we block them<br />Add this:<br />
Code:
<br />if (!strstr($user['U_Groups'],"-5-")) {<br />   $html = new html;<br />   $html -&gt; not_right("You are not authorized to view this page.",$Cat);<br />}<br />
<br /><br />To account for allowing multiple usergroups, example admins, moderators and group 5 are allowed:<br />
Code:
<br />if ((!strstr($user['U_Groups'],"-5-")) &amp;&amp; (!strstr($user['U_Groups'],"-1-")) &amp;&amp; (!strstr($user['U_Groups'],"-2-"))) {<br />   $html = new html;<br />   $html -&gt; not_right("You are not authorized to view this page.",$Cat);<br />}<br />
<br /><br />That should do it. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#276031 - 03/01/05 09:46 PM Re: Beta-[6.5] Generic Page for 6.5 [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thanks for the updates, those are handy <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#276032 - 01/07/06 09:57 PM Re: Beta-[6.5] Generic Page for 6.5 [Re: SurfMinister]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
works in 6.5.2 <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top



Moderator:  Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks